home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10933 < prev    next >
Encoding:
Text File  |  1996-08-05  |  883 b   |  24 lines

  1. Newsgroups: comp.programming,comp.lang.c
  2. Path: info.ucla.edu!zephyr!whirlwind!shin
  3. From: shin@whirlwind.seas.ucla.edu (Daniel D Shin)
  4. Subject: need help with serial communication using c++
  5. Sender: news@seas.ucla.edu (News Daemon)
  6. Message-ID: <DoLBFr.Hvp@seas.ucla.edu>
  7. Date: Wed, 20 Mar 1996 23:47:51 GMT
  8. X-Nntp-Posting-Host: whirlwind.seas.ucla.edu
  9. Organization: School of Engineering & Applied Science, UCLA.
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Can someone out there help me how to write serial communication program using c language?  Specifically, I need to translate a qbasic program into c.  The basic program is written as :
  13.  
  14.       OPEN "COM1:9600,e,7,1,CS,DS" FOR RANDOM AS #1
  15.       PRINT #1, "CH",cn
  16.       INPUT #1, dummy
  17.       CLOSE #1
  18.  
  19. The program must run under DOS environment.  
  20. Thank you for your time, and any help would be greatly appreciated.
  21.  
  22. shin@seas.ucla.edu
  23.  
  24.